package org.javaboy.demo;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.DependsOn;

/**
 * @author Lyh
 * @date 2024/2/19 1:26
 * @desciption:
 */
public class JavaConfig {
    @Bean
    @DependsOn("b")
    A a(){
        return new A();
    }
    @Bean
    B b(){
        return new B();
    }
}
